<%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2021/3/19
  Time: 10:31
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" import="java.util.*" language="java" %>
<%@ page import="java.text.SimpleDateFormat" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h2>今天的日期是</h2>
<%
    //输出今天日期
    SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    Date d=new Date();
    String str=df.format(d);
    out.print("<h1 style='color:red;font-size:80px;'>"+str+"</h1>");
%>
<h2><%=str%></h2>
</body>
</html>
